NAME = rubber.sms
SRC = rubber.asm
OBJ = rubber.obj
WLAPATH=../../wla_dx_9.3/binaries
WLAZ80 = $(WLAPATH)/wla-z80
WLALD = $(WLAPATH)/wlalink
MEKAPATH=../../meka
MEKA=$(MEKAPATH)/meka /DEBUG
RM = rm -f

all:
	$(RM) $(NAME) $(OBJ)
	$(WLAZ80) -o $(SRC) $(OBJ)
	echo "[objects]" > linkfile
	echo $(OBJ) >> linkfile
	$(WLALD) linkfile $(NAME)
test:
	$(MEKA) $(NAME)
